using System;
using System.Xml;

namespace umlungu.engineX.webX.thoughts.Admin.service {
	/// <summary>
	/// umlungu engineX web framework, handlerX class.
	/// </summary>
	public class Subscriber : SoapX
	{
		/// <summary>Constructor</summary>
		public Subscriber() : base("service", "Subscriber") {
		}
		/// <summary>
		/// Method _Process:: calls delegate(s)
		/// </summary>
		protected override void _Process(XmlDocument xmldom, profileX profile, contentX content) {
			_Debug("Subscriber._Process(", Process, ") profile:", profile.Xml.InnerXml);
			_Debug("Subscriber._Process(", Process, ") content:", content.Xml.InnerXml);
			switch (Process) {
				case "List":			ProcessResult(new ProcessServiceResult(Handlers.processSubscriberList));	break;
				case "Edit":			ProcessResult(new ProcessServiceResult(Handlers.processSubscriberEdit));	break;
				case "Add":				ProcessResult(new ProcessServiceResult(Handlers.processSubscriberAdd));		break;
				case "Delete":			ProcessResult(new ProcessServiceResult(Handlers.processSubscriberDelete));	break;
				case "GetAdd":			ProcessResult(new ProcessServiceResult(Handlers.processSubscriberGetAdd));	break;
				case "GetEdit":			ProcessResult(new ProcessServiceResult(Handlers.processSubscriberGetEdit));	break;
				case "GetDel":			ProcessResult(new ProcessServiceResult(Handlers.processSubscriberGetDel));	break;
				case "SetBlogspace":	ProcessResult(new ProcessServiceResult(Handlers.processSetBlogspace));		break;
			}
			_Debug("Subscriber._Process(", Process, ") profile:", profile.Xmldoc.OuterXml);
		}
	}
}
		
